|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAge
Interface that adds aging function to an individual.
Method Summary | |
---|---|
int |
getAge()
Getter for the age. |
float |
getAgeNormalized()
Getter for the normalized age (in [0;1]). |
void |
incAge()
Increments the age. |
boolean |
isOld()
Determines if the individual is too old and should die. |
void |
setMaxAge(int maxAge)
Setter for the maximum age. |
Method Detail |
---|
int getAge()
void incAge()
boolean isOld()
float getAgeNormalized()
void setMaxAge(int maxAge)
maxAge
- The maximum age
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |